package com.seafwg.dao;

import org.apache.ibatis.annotations.Update;

/**
 * @Author seafwg
 * @Date 2022/3/23 6:55 下午
 * @Version 1.0
 * @description xxx
 */

public interface AccountMapper {

    @Update("update account set money = money+#{money} where name=#{name}")
    void addAccount(String name, Integer money);

    @Update("update account set money=money-#{money} where name=#{name}")
    void divAccount(String name, Integer money);
}
